/**
 * @description 定义状态管理器
 */

import Vue from 'vue'
import Vuex from 'vuex'
import common from './common'
import persisted from 'vuex-persistedstate'

Vue.use(Vuex)

const store = new Vuex.Store({
  plugins: [
    persisted({
        storage:window.sessionStorage
    })
  ],
  modules: {
    common
  }
})

export default store
